//
//  NotifyingClass.m
//  TextApp
//
//  Created by Tim Isted on 08/09/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "NotifyingClass.h"
#import "MathUtilities.h"


@implementation NotifyingClass

- (IBAction)displaySomeText:(id)sender
{
	float radius = 0.0;
	float circumference = [self generateValue:&radius];
	
	[textView insertText:[NSString stringWithFormat:@"With a radius of %f, the circumference is: %f\n", radius, circumference]];
}

- (float)generateValue:(float *)originalValue
{
	float radius = [textField floatValue];
	*originalValue = radius;
	float circumference = [MathUtilities circumferenceFromRadius:radius];
	return circumference;
}

@end